﻿<ContentDialog
    x:Class="WinKee.Dialogs.CustomExtensionDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Title="New Custom Extension"
    PrimaryButtonText="ok"  
    SecondaryButtonText="cancel"
    PrimaryButtonClick="ContentDialog_PrimaryButtonClick"
    SecondaryButtonClick="ContentDialog_SecondaryButtonClick">

    <StackPanel VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
        <TextBox IsTextPredictionEnabled="False" Name="ExtensionTextBox" PlaceholderText="E.g. kdbx" Header="Extensions"/>

        <TextBlock Foreground="{StaticResource PhoneAccentBrush}" Name="WarningTextBlock" Visibility="Collapsed" Margin="0,5" Style="{StaticResource MessageDialogContentStyle}" TextWrapping="Wrap">
            <TextBlock.Text>
                One or more file extensions contain invalid characters.
            </TextBlock.Text>
        </TextBlock>
        
        <TextBlock Margin="0,5" Style="{StaticResource MessageDialogContentStyle}" TextWrapping="Wrap">
            <TextBlock.Text>
                Enter your desired file extensions separated by spaces or commas. Include only alphanumeric characters. 
            </TextBlock.Text>
        </TextBlock>
        <TextBlock Margin="0,5" Style="{StaticResource MessageDialogContentStyle}" TextWrapping="Wrap">
            <TextBlock.Text>
                Examples: kdbx txt myext
            </TextBlock.Text>
        </TextBlock>
        <TextBlock Margin="0,5" Style="{StaticResource MessageDialogContentStyle}" TextWrapping="Wrap">
            <TextBlock.Text>
                Forbidden: .kdbx *
            </TextBlock.Text>
        </TextBlock>
    </StackPanel>
</ContentDialog>
